<form [formGroup]="form" (ngSubmit)="submit()">
  <formly-form [model]="model" [fields]="fields" [form]="form"></formly-form>
  <button type="submit" class="btn btn-primary" [disabled]="!form.valid">Submit</button>
</form>
